<?php
$host = "localhost";
$user = "root";
$pwd = "root";
$db = "php_db";
$port = "3306";
$charset = 'utf8mb4'; 

//$link=mysqli_connect("192.168.158.103","php123","123456","php_db","3306");
$link=mysqli_connect($host,$user,$pwd,$db,$port);



echo $link?'成功':'失败';

